package com.learn.springboot.learnspringboot.controller;

import com.learn.springboot.learnspringboot.domain.AuthorDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 10:20 2018-11-16
 * @Modify by:
 */
@RestController
public class AuthorController {

  @Autowired
  private AuthorDemo authorDemo;

  @RequestMapping("/author")
  public AuthorDemo getAuthorDemo(){
    return authorDemo;
  }

}
